﻿using Lanting.Model;
using Lanting.Utilities.NetConn;

namespace Lanting.Utilities
{
    public class Params
    {
        /// <summary>
        /// 通用状态:成功
        /// </summary>
        public const int status_ok = 1;

        /// <summary>
        /// 通用状态:失败
        /// </summary>
        public const int status_fail = 0;

        /// <summary>
        /// 登录用户
        /// </summary>
        public static User loginUser = new User();

        /// <summary>
        /// 登录会话信息，包含权限、会话id、最新操作码
        /// </summary>
        public static AppHttpUtils acu = new AppHttpUtils();

        /// <summary>
        /// 网络通信超时(毫秒)
        /// </summary>
        public const int timeout_net = 25000;

        /// <summary>
        /// 服务器地址
        /// </summary>
        public static string serverUrl = "";

        /// <summary>
        /// 服务器默认地址
        /// </summary>
        public const string default_ServerAddress = "192.168.1.110";

        /// <summary>
        /// 服务器默认端口号
        /// </summary>
        public const string default_ServerPort = "8090";

        /// <summary>
        /// 服务端相对路径
        /// </summary>
        public const string serverFilePath = "/lantingCars/";

        /// <summary>
        /// 默认页面大小
        /// </summary>
        public const int PageSize = 50;
        /// <summary>
        /// 每页最大条数
        /// </summary>
        public const int PageSizeMax = int.MaxValue;

        /// <summary>
        /// 权限树节点选中
        /// </summary>
        public const int treeNodeChecked = 1;
        /// <summary>
        /// 权限树节点未选中
        /// </summary>
        public const int treeNodeNotChecked = 0;
        public static bool isAdmin = true;

    }
}
